home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
examples
/
exam30
/
main.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-27
|
2KB
|
102 lines
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/
#include "generics.h"
main(int argc, char *argv[])
{
object myObj, seq, lnk;
InitDynace(&argc);
myObj = gSubClasses(Object);
for (seq=gSequence(myObj) ; lnk = gNext(seq) ; )
gPrint(lnk, stdoutStream);
gDispose(myObj);
printf("\n\n");
myObj = gSuperClasses(Dictionary);
for (seq=gSequence(myObj) ; lnk = gNext(seq) ; )
gPrint(lnk, stdoutStream);
/* gDispose(myObj); */
printf("\n\n");
printf("%s\n", gIsKindOf(myObj, Object) ? "Yes" : "No");
printf("%s\n", gIsKindOf(myObj, LinkObject) ? "Yes" : "No");
printf("%s\n", gIsKindOf(myObj, LinkList) ? "Yes" : "No");
printf("%s\n", gIsKindOf(myObj, Dictionary) ? "Yes" : "No");
printf("\n\n");
printf("%s\n", IsaClass(Link) ? "Yes" : "No");
printf("%s\n", IsaClass(myObj) ? "Yes" : "No");
printf("\n\n");
printf("%s\n", IsInstanceOf(myObj, LinkObject) ? "Yes" : "No");
printf("%s\n", IsInstanceOf(myObj, LinkList) ? "Yes" : "No");
printf("\n\n");
printf("%s\n", RespondsTo(myObj, gFirst) ? "Yes" : "No");
printf("%s\n", RespondsTo(myObj, gDispose) ? "Yes" : "No");
printf("%s\n", RespondsTo(myObj, gShortValue) ? "Yes" : "No");
return 0;
}
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/